<?php defined('_JEXEC') or die('Restricted access');?>
<?php $checked = 'checked="checked"'; ?>
<div id="janews-main">
<form action="index.php" method="post" name="adminForm">
<div class="col width-50">
	</fieldset><fieldset class="adminform">
		<legend><?php echo JText::_( 'ADVANCED CONFIGURATION' ); ?></legend>
		<table class="admintable" width="100%">
		<?php if ($this->menu==1): ?>
		<tr>
			<td align="right" class="key">
			<span class="editlinktip">
				<label for="title" class="hasTip" title="Set JA News Component on menu homepage::Select Yes if you want set on menu homepage this component">
					<?php echo JText::_( 'SET ON MENU HOMEPAGE' ); ?>:
				</label></span>
			</td>
			<td>
        <input type="radio" name="menu" id="yes" value="1" checked="checked"/>
          <label for="yes">Yes</label>
        <input type="radio" name="menu" id="no" value="0" />
	        <label for="no">No</label>
			</td>
		</tr>
		<?php endif; ?>
		<tr>
			<td align="right" class="key">
			<span class="editlinktip">
				<label for="title" class="hasTip" title="Set JA News Component as default homepage::Select Yes if you want set default homepage this component">
					<?php echo JText::_( 'SET DEFAULT HOMEPAGE' ); ?>:
				</label></span>
			</td>
			<td>
        <input type="radio" name="homepage" id="yes" value="1" <?php if ($this->homepage) echo $checked ; ?>/>
          <label for="yes">Yes</label>
        <input type="radio" name="homepage" id="no" value="0" <?php if (!$this->homepage) echo $checked ; ?>/>
	        <label for="no">No</label>
			</td>
		</tr>
		<tr>
			<td align="right" class="key">
				<label for="title" class="hasTip" title="Enabled JA News Component::Select Yes if you want enable JA News component">
					<?php echo JText::_( 'ENABLED JA NEWS COMPONENT' ); ?>:
				</label>
			</td>
			<td>
			 <input type="radio" name="enabled" id="enable" value="1" <?php if ($this->enabled) echo $checked ; ?>/>
      	<label for="enable"><?php echo JText::_('ON'); ?></label>
      	<input type="radio" name="enabled" id="disable" value="0" <?php if (!$this->enabled) echo $checked; ?>/>
      	<label for="disable"><?php echo JText::_('OFF'); ?></label>
			</td>
		</tr>
		</table>
	</fieldset>
</div>
<input type="hidden" name="setmenu" value="<?php echo $this->menu; ?>"/>
<input type="hidden" name="option" value="com_janews" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="controller" value="common" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
</div>